<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>add</title>
    <link rel="stylesheet" href="/static/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/bootstrap-3.3.7-dist/css/bootstrap-theme.min.css">
     <link href="/static/css/main.css" rel="stylesheet">

</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
          aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">Project name</a>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#">Dashboard</a></li>
          <li><a href="#">Settings</a></li>
          <li><a href="#">Profile</a></li>
          <li><a href="#">Help</a></li>
        </ul>
        <form class="navbar-form navbar-right">
          <input type="text" class="form-control" placeholder="Search...">
        </form>
      </div>
    </div>
  </nav>

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar">
        <ul class="nav nav-sidebar">
          <li class="active"><a href="#">Overview <span class="sr-only">(current)</span></a></li>
          <li><a href="#">Reports</a></li>
          <li><a href="#">Analytics</a></li>
          <li><a href="#">Export</a></li>
        </ul>

      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h1 class="page-header">edit页面</h1>
        <div class="table-responsive">

          <form action="edit" method="post">
            <input type="hidden" name="id" value="{{ user.id }}">
            <div class="form-group">
              <label for="nameid">name</label>
              <input type="text" class="form-control" value="{{ user.name }}" name="name" id="nameid" placeholder="name" required>
            </div>
            <div class="form-group">
              <label for="age">age</label>
              <input type="text" class="form-control" value="{{ user.age }}" name="age" id="age" placeholder="age" required>
            </div>
            <div class="form-group">
              <label for="">gender</label>
              <div>
                <label class="radio-inline">
                  <input type="radio" name="gender" id="" value="0"
                          {% if user.gender == 0 %}checked{% endif %}> 男
                </label>
                <label class="radio-inline">
                  <input type="radio" name="gender" id="" value="1"
                  {% if user.gender == 1 %}checked{% endif %}> 女
                </label>
              </div>
            </div>
            <div class="form-group">
              <label for="hobbies">hobbies</label>
              <input type="text" class="form-control" name="hobby" id="hobbies" value="{{ user.hobby }}" placeholder="hobbies"
                required>
            </div>
              <div class="form-group">
              <label for="email">email</label>
              <input type="text" class="form-control" name="email" id="email" value="{{ user.email }}" placeholder="hobbies"
                required>
            </div>
            <button type="submit" class="btn btn-default">Submit</button>
          </form>
        </div>
      </div>
    </div>
  </div>


<script src="/static/js/jquery-1.12.4.js"></script>
<script src="/static/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
</body>
</html>